@use 'utils/variables';

.MultiSelectCard {
    position: relative;
    display: inline-flex;
    min-width: 212px;
    max-width: 257px;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px 24px;
    border: none;
    border-radius: 8px;
    margin-right: 16px;
    background: var(--center-channel-bg);
    box-shadow: variables.$elevation-3;
    cursor: pointer;
    list-style-type: none;
    outline: 1px solid rgba(var(--center-channel-color-rgb), 0.16);
    text-align: center;

    &:hover,
    &:active,
    &:focus {
        box-shadow: variables.$elevation-4;
        outline: 1px solid rgba(var(--center-channel-color-rgb), 0.32);
    }

    &--small {
        min-width: 160px;
        padding: 24px 12px 20px;

        .MultiSelectCard__label {
            padding-top: 12px;
        }

        .MultiSelectCard__checkmark {
            width: 28px;
            height: 28px;
        }
    }

    &:last-child {
        margin-right: 0;
    }

    &--checked {
        box-shadow: variables.$elevation-2;
        outline: 2px solid var(--button-bg);

        &:hover,
        &:active,
        &:focus {
            box-shadow: variables.$elevation-2;
            outline: 2px solid var(--button-bg);
        }

        &:focus {
            box-shadow: variables.$elevation-4;
        }
    }

    &__checkmark {
        position: absolute;
        top: 11px;
        right: 11px;
        width: 31px;
        height: 31px;
        color: var(--button-bg);
        font-size: 31px;
    }

    &__label {
        font-family: Metropolis, sans-serif;
        font-size: 18px;
        font-weight: 600;
    }
}
